<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>共享投票系统接口列表</title>
    <link href="_HTTPCSS_/apilist.css" rel="stylesheet">
    <link href="_HTTPCSS_/padding.css" rel="stylesheet">
    <link href="_HTTPCSS_/margin.css" rel="stylesheet">
    <link href="_HTTPCSS_/bgcolor.css" rel="stylesheet">
    <link href="_HTTPCSS_/color.css" rel="stylesheet">
    <link href="_HTTPCSS_/border.css" rel="stylesheet">
</head>

<body>
<div class="bc_2c2 p10 m-8 mb8">
    <table width="100%">
        <tr>
            <td width="60" valign="top">
                <img src="http://h5.52g3.cc/logo/ls293_logo_60x.png" width="60">
            </td>
            <td valign="top">
                <span class="c_fff"><b>共享投票接口</b></span><br>
                <span class="c_bbb">创立时间：2018.05.16</span><br>
            </td>
        </tr>
    </table>
</div>
<table width="100%">
    <tr>
        <td width="250" valign="top">
            <div class="b1_cccs">{$tableHtml}</div>
        </td>
        <td class="textRed" valign="top" bgcolor="#fff">
            <iframe src="{$apiUrl}" frameborder="0" width="100%" name="iframe" id="iframe" scrolling="no" class="m8"
                    marginheight="0" marginwidth="0" onload="IFrameReSize('iframe')">
            </iframe>
        </td>
    </tr>
</table>
</body>
</html>

<script>
    function IFrameReSize(iframename) {
        var pTar = document.getElementById(iframename);
        if (pTar) { //f
            var cDoc = pTar.contentDocument;
            var doc = pTar.Document;
            if (cDoc && cDoc.body.offsetHeight) {
                pTar.height = cDoc.body.offsetHeight;
            } else if (doc && doc.body.scrollHeight) {
                //ie
                pTar.height = doc.body.scrollHeight;
            }
        }
    }
</script>